package com.wjx.source;

import java.io.File;
import java.util.Set;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

public class SourcePathTest {

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testDisposeDirectory() {
		File file=new File("../Log4jSvn");
		Set<String> set = new SourcePath().disposeDirectory(file);
		for(String path:set)
		System.out.println(path);
	}
	@Test
	public void classPath() {

		String root = "E:\\Workspaces\\MyEclipse 9\\powermock";
		File rootFile = new File(root);
		Set<String> s = new SourcePath().disposeDirectory(rootFile);
		for (String str : s) {
			System.out.println("<classpathentry kind=\"src\" path=\""+str+"\"/>");
		}
	}
}
